/**
 * 系统更新日志 api 封装
 *
 * @Author:    卓大
 * @Date:      2022-09-26 14:53:50
 * @Copyright  1024创新实验室
 */
import {getRequest, postRequest} from '/@/lib/axios';

export const changeLogApi = {
    /**
     * 分页查询  @author  卓大
     */
    queryPage: (param) => {
        return postRequest('/changeLog/queryPage', param);
    },

    /**
     * 增加  @author  卓大
     */
    add: (param) => {
        return postRequest('/changeLog/add', param);
    },

    /**
     * 修改  @author  卓大
     */
    update: (param) => {
        return postRequest('/changeLog/update', param);
    },

    /**
     * 删除  @author  卓大
     */
    delete: (id) => {
        return getRequest(`/changeLog/delete/${id}`);
    },

    /**
     * 批量删除  @author  卓大
     */
    batchDelete: (idList) => {
        return postRequest('/changeLog/batchDelete', idList);
    },
};
